package com.zhxh.nzpos.member;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.zhxh.nzpos.BaseActivity;
import com.zhxh.nzpos.Constants;
import com.zhxh.nzpos.R;
import com.zhxh.nzpos.TestData;

/**
 * 会员管理--刷卡激活界面
 * @author wangzt
 *
 */
public class MemberShuakaActivity extends BaseActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_member_shuaka);
        Button shuakaBtn = (Button)findViewById(R.id.member_shuaka_btn);
        
        // TODO 真正通过刷卡进入激活界面，将卡号带过去，如果没有卡号则不能进入激活界面
        shuakaBtn.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(getApplicationContext(), ActiveMemberActivity.class);
				intent.putExtra(Constants.MEMBER_CARD, TestData.MEMBER_CARD);
				startActivity(intent);
				finish();
			}
		});
    }
}
